<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<script type="text/javascript">
	$(function(){
		var statYear = $('#stat_year').val();
		var sub_grant_code = $("input[name='proposal/sub_grant_code']").val();
		if (sub_grant_code == '700') {
			$('#start_date').val(statYear+'-01-01');
			$('#end_date').val((parseInt(statYear)+2)+'-12-31');
		}else if (sub_grant_code == '701'||sub_grant_code == '702'){
			$('#start_date').val(statYear+'-01-01');
			$('#end_date').val((parseInt(statYear)+1)+'-12-31');
		}else {
			$('#start_date').val('');
			$('#end_date').val('');
		}
	});
	
	/* function cntYear(seleceId){
		var statYear = $('#stat_year').val();
		var val = $("#"+seleceId).val();
		if (val == '01') {
			$('#start_date').val(statYear+'-01-01');
			$('#end_date').val((parseInt(statYear)+2)+'-12-31');
		}else if (val == '02'||val == '03'){
			$('#start_date').val(statYear+'-01-01');
			$('#end_date').val((parseInt(statYear)+1)+'-12-31');
		}else if (val == ''){
			$('#start_date').val('');
			$('#end_date').val('');
		}
	} */
	
	/**
	 * 选择树设置隐藏域值 public.js中原函数不适用，针对treeId中包含下标的情况
	 */
	function initTreeValueExt(treeId, treeNode) {

		if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label")
					+ messageTip.researchAreaInvalidDisciplineCode);
			if (treeNode.level == 0) {
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_code'],[id$='" + treeId
								+ "_code']").val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_value'],[id$='" + treeId
								+ "_value']").val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_name'],[id$='" + treeId
								+ "_name']").val("");
			}

			return false;
		}

		var str = treeNode.name;
		var obj = treeNode.parentNode;

		while (obj != null) {
			obj = obj.parentNode;
		}

		$("#" + treeId).parents("td")
				.find(
						"[name$='" + treeId + "_code'],[id$='" + treeId
								+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_value'],[id$='" + treeId
						+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td")
				.find(
						"[name$='" + treeId + "_name'],[id$='" + treeId
								+ "_name']").val(str);

	}
	function sync0(id){
		var request_amt = parseFloat($('#'+id).val());
		if(!isNaN(request_amt)){
			$('#total_invest_26').val(request_amt);
		}else{
			$('#total_invest_26').val('');
		}
		
		var val1 = parseFloat($('#total_invest_28').val());
		var val2 = parseFloat($('#total_invest_26').val());
		if(isNaN(val1)){
			val1 = 0 ;
		}
		if(isNaN(val2)){
			val2 = 0 ;
		}
		$('#total_invest_27').val(val1-val2);
	}
	
	</script>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" id="basicInfo" cellpadding="0"
	cellspacing="1">
	<col style="width: 20%" />
	<col style="width: 25%" />
	<col style="width: 25%" />
	<col style="width: 30%" />
	<tr>
		<td class="t_bar2" colspan="4">基本情况</td>
	</tr>
	<tr>
		<td align="right" ><span class="color_red">*</span>项目名称：</td>
		<td colspan="3">
		<input  name="proposal/zh_title" label="项目名称" type="text" class="input_css required maxlength:30" style="width: 525px;"  value="<x:out select="$xmlData/data/proposal/zh_title" />"/>
		</td>
	</tr>
	<tr>
		<td align="right" ><span class="color_red">*</span>现处阶段：</td>
		<td>
			<input  name="proposal/now_stage" label="现处阶段" type="text" class="input_css required maxlength:100"  value="<x:out select="$xmlData/data/proposal/now_stage" />"/>
		</td>
		<td align="right" ><span class="color_red">*</span>前期资助情况：</td>
		<td>
			<input  name="proposal/prophase_subsidize" label="前期资助情况" type="text" class="input_css required maxlength:100"  value="<x:out select="$xmlData/data/proposal/prophase_subsidize" />"/>
		</td>
	</tr>
	<%-- <tr>
		<td align="right" width="20%"><span class="color_red">*</span>资助类别：</td>
		<td colspan="" >
		<c:set var="funding_type_value"><x:out select="$xmlData/data/proposal/funding_type_value" /></c:set>
			<cpt:select id="funding_type"  key="funding_type"  className="select_width" value="${funding_type_value}" onChange="cntYear(this.id);"></cpt:select>
			<input type="hidden" name="proposal/funding_type_value" class="required" value="${funding_type_value}" label="资助类别">
			<input type="hidden" name="proposal/funding_type_name" value="<x:out select="$xmlData/data/proposal/funding_type_name" />">
		</td>
		<td align="right" width="20%"><span class="color_red">*</span>研究属性：</td>
		<td >
		<c:set var="research_type_value"><x:out select="$xmlData/data/proposal/research_type_value" /></c:set>
			<cpt:select id="research_type"  key="research_type"  className="select_width" value="${research_type_value}"></cpt:select>
			<input type="hidden" name="proposal/research_type_value" class="required" value="${research_type_value}" label="研究属性">
			<input type="hidden" name="proposal/research_type_name" value="<x:out select="$xmlData/data/proposal/research_type_name" />">
		</td>
	</tr> --%>
	<tr>
		<td align="right" ><span class="color_red">*</span>技术领域：</td>
		<td>
			<input  name="proposal/technical_field" label="技术领域" type="text" class="input_css required maxlength:100"  value="<x:out select="$xmlData/data/proposal/technical_field" />"/>
		</td>
		<td align="right" ><span class="color_red">*</span>应用产业领域：</td>
		<td>
			<input  name="proposal/app_industry" label="应用产业领域" type="text" class="input_css  required  maxlength:100"  value="<x:out select="$xmlData/data/proposal/app_industry" />"/>
		</td>
	</tr>
	<tr>
		<td align="right" ><span class="color_red">*</span>技术来源：</td>
		<td>
			<input  name="proposal/sources_of_technology" label="技术来源" type="text" class="input_css  required  maxlength:100"  value="<x:out select="$xmlData/data/proposal/sources_of_technology" />"/>
		</td>
		<td align="right" ><span class="color_red">*</span>国际或港澳台合作：</td>
		<td>
			<input  name="proposal/international_cooperation" label="国际或港澳台合作" type="text" class="input_css required  maxlength:100"  value="<x:out select="$xmlData/data/proposal/international_cooperation" />"/>
		</td>
	</tr>
	<tr>
	    <td  align="right"  ><span class="color_red">*</span>申报日期：</td>
		<td colspan="3">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className="required date" label="申请人信息-->申报日期"></cpt:date> 
		</td>
	</tr>
	
	
	
	<tr>
		<td colspan="4" class="t_bar2">项目负责人</td>
	</tr>

	
	<tr>
		<td align="right" >留学国别：</td>
		<td>
			<input  name="proposal/fzr_studying_country" label="留学国别" type="text" class="input_css  maxlength:100"  value="<x:out select="$xmlData/data/proposal/fzr_studying_country" />"/>
		</td>
		<td align="right" ><span class="color_red">*</span>毕业院校：</td>
		<td>
			<span name="proposal/fzr_graduate_college"><x:out select='$xmlData/data/proposal/fzr_graduate_college' /></span>
		</td>
	</tr>
	<td nowrap align="right"><span class="color_red">*</span>出国日期：</td>
		<td nowrap >
			<c:set var="out_date"><x:out select="$xmlData/data/proposal/out_date" /></c:set>
			<cpt:date id="out_date" name="proposal/out_date" value="${out_date}"  className=" date  dateCompare:in_date" label="出国日期" ></cpt:date> 
			
		</td>
		<td nowrap align="right"><span class="color_red">*</span>回国日期：</td>
		<td nowrap >
			<c:set var="in_date"><x:out select="$xmlData/data/proposal/in_date" /></c:set>
			<cpt:date id="in_date" name="proposal/in_date" className=" date" label="回国日期" value="${in_date}" ></cpt:date> 
		</td>
	
	<tr>
		<td align="right" >人才种类：</td>
		<td colspan="3">
			<input  name="proposal/fzr_species" label="人才种类" type="text" class="input_css required maxlength:100"  value="<x:out select="$xmlData/data/proposal/fzr_species" />"/>
		</td>
	</tr>
	
	
	</table>
	<div class="t_bar">
	<span class="color_red">*</span>项目组主要参与者
	<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
	<!-- <span style="font-size: 12px;font-weight: normal;">
		（如果您需要修改申请人信息， 请保存申请书后点击菜单“管理”>“个人信息维护”完成修改）
	</span> -->
	</security:authorize>
</div>
	<table  id="zh_persons" border="0" cellspacing="0" cellpadding="0" class="table01" >
		<thead>
			<tr>
            <th width="7%" >选择</th>
            <th nowrap>序号</th>
				<th width="13%">姓名</th>
				<th width="11%">从事专业</th>
				<th width="11%">出生年月</th>
				<th width="10%">职务/职称</th>
				<th width="10%">学历</th>
				<th width="20%" nowrap="nowrap">项目分工</th>
				<th width="20%">所在单位</th>
			</tr>
		</thead>
		<tbody id="tab">
			<tr style="display: none">
				<td  align="center"  width="50px" >
					<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn()" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|ethnicity_value" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|ethnicity_name" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|subject_code" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|subject_name" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|discipline_code" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|discipline_name" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|region_value" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|region_name" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|card_type_value" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|academician_value" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|academician_name" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|org_code" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|contact|tel_work" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|contact|fax" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|post_code" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_value" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_name" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_country_value" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_country_name" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_college" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_year" /> 
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|address" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|prof_title" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|prof_title_value" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|post_doctor_value"/>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|post_doctor_name"/>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|birth_date"/>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|gender_value"/>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|age"/>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|educate_value"/>
					<input type="hidden" name="zh_persons|zh_person[0]|iscomember" value="0"/>
					<input type="hidden" name="zh_persons|zh_person[0]|researches" label="xml"/>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|card_type_name" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|card_code"/>
					<input type="hidden" name="zh_persons|zh_person[0]|contact|email"/>
					<input type="hidden" name="zh_persons|zh_person[0]|contact|mobile"/>
					<input type="hidden" name="zh_persons|zh_person[0]|contact|major"/>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]@seq_no">[index]</span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|zh_name"></span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|contact|major_work"></span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|birthday"></span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|position"></span>/<span name="zh_persons|zh_person[0]|basic_info|prof_title_name"></span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|educate_name"></span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|work" ></span>
				</td>
				<td align="center">
					<span  name="zh_persons|zh_person[0]|basic_info|org_name" ></span>
				</td>
			</tr>
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/zh_persons/zh_person" var="zh_person">
				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td  align="center"  width="50px" >
						<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn()" /> 
						<c:if test="${index==0}">
							<input type="hidden" id="submit_psn" name="zh_persons/zh_person[${flag}${index}]@submit_psn" value="1" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/psn_code" value="<x:out select="$zh_person/basic_info/psn_code" />"/>
						</c:if>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/en_name" value="<x:out select="$zh_person/basic_info/en_name" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_value" value="<x:out select="$zh_person/basic_info/ethnicity_value" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_name" value="<x:out select="$zh_person/basic_info/ethnicity_name" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/subject_code" value="<x:out select="$zh_person/basic_info/subject_code" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/subject_name" value="<x:out select="$zh_person/basic_info/subject_name" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/discipline_code" value="<x:out select="$zh_person/basic_info/discipline_code" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/discipline_name" value="<x:out select="$zh_person/basic_info/discipline_name" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_value" value="<x:out select="$zh_person/basic_info/region_value" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_name" value="<x:out select="$zh_person/basic_info/region_name" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value" value="<x:out select="$zh_person/basic_info/gender_value" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_value" value="<x:out select="$zh_person/basic_info/card_type_value" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_value" value="<x:out select="$zh_person/basic_info/academician_value" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_name" value="<x:out select="$zh_person/basic_info/academician_name" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_code" value="<x:out select="$zh_person/basic_info/org_code" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/tel_work" value="<x:out select="$zh_person/contact/tel_work" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/fax" value="<x:out select="$zh_person/contact/fax" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_value" value="<x:out select="$zh_person/basic_info/degree_value" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_name" value="<x:out select="$zh_person/basic_info/degree_name" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_code" value="<x:out select="$zh_person/basic_info/post_code" />" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_value" value="<x:out select="$zh_person/basic_info/degree_country_value" />" /> 
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_name" value="<x:out select="$zh_person/basic_info/degree_country_name" />" /> 
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_college" value="<x:out select="$zh_person/basic_info/degree_college" />" /> 
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_year" value="<x:out select="$zh_person/basic_info/degree_year" />" /> 
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title" value="<x:out select="$zh_person/basic_info/prof_title" />" /> 
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_value" value="<x:out select="$zh_person/basic_info/prof_title_value" />" /> 
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/address" value="<x:out select="$zh_person/basic_info/address" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_value" value="<x:out select="$zh_person/basic_info/post_doctor_value" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_name" value="<x:out select="$zh_person/basic_info/post_doctor_name" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/age" value="<x:out select="$zh_person/basic_info/age" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_value" value="<x:out select="$zh_person/basic_info/educate_value" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_code" value="<x:out select="$zh_person/basic_info/card_code" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_name" value="<x:out select="$zh_person/basic_info/card_type_name" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/email" value="<x:out select="$zh_person/contact/email" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/mobile" value="<x:out select="$zh_person/contact/mobile" />"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/iscomember" value="0"/>
						
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/researches" label="xml"/>
					</td>
					<td align="center">
					<span name="zh_persons/zh_person[${flag}${index}]@seq_no">${index+1}</span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/zh_name"><x:out select="$zh_person/basic_info/zh_name" /></span>
						<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
						<c:if test="${index==0 }"><a href="###" class="Blue" style="text-decoration: none;" onclick="selectFirstRadio(this);editRow('zh_persons','${ctx}/proposal/edit/dialog/psnInfoEdit_sxry?parentTab=zh_persons&type=edit&needMeetingInfo=${param.needMeetingInfo}&psnCode=<x:out select="$zh_person/basic_info/psn_code" />&TB_iframe=true&height=440&width=900','编辑项目参与人信息')">[&nbsp;设置&nbsp;]</a></c:if>
						</security:authorize>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/contact/major_work"><x:out select="$zh_person/contact/major_work" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/birthday"><x:out select="$zh_person/basic_info/birthday" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/position"><x:out select="$zh_person/basic_info/position" /></span>/<span name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_name"><x:out select="$zh_person/basic_info/prof_title_name" /></span>
					</td>
					<td align="center"> 
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_name"><x:out select="$zh_person/basic_info/educate_name" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/work"><c:choose><c:when test="${index==0}">项目负责人</c:when><c:otherwise><x:out select="$zh_person/basic_info/work" /></c:otherwise></c:choose></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/org_name"><x:out select="$zh_person/basic_info/org_name" /></span>
					</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			</tbody>
	</table>
<br>
	<table border="0" cellpadding="0" cellspacing="1">
		<tr>
			<td>
				<input class="button_02" type="button" value="添加" onclick="if(checkTabLimit('zh_persons',99,'项目参与人员最多只能填写99条')){addNewRow('zh_persons','${ctx}/proposal/edit/dialog/psnInfoEdit_sxry?parentTab=zh_persons&type=add&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','添加项目参与人');}try{top.resizeFrame();}catch(e){};">
				&nbsp;<input class="button_02"  id="zh_psnPrev" type="button" value="上移" onclick="movePrev('zh_persons');setSubmitPsn()">
				&nbsp;<input class="button_02"  id="zh_psnNext" type="button" value="下移" onclick="moveNext('zh_persons');setSubmitPsn()">
				&nbsp;<input class="button_02"  id="zh_psnEdit" type="button" value="编辑" onclick="if(checkSubmitPsn('zh_persons'))editRow('zh_persons','${ctx}/proposal/edit/dialog/psnInfoEdit_sxry?parentTab=zh_persons&type=edit&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','编辑项目参与人信息')">
				&nbsp;<input class="button_02"  id="zh_psnDel" type="button" value="删除" onclick="deleteSelectedRow('zh_persons','人员信息',1,'申请人不能被删除');countPsnNum('zh_persons','psncnt_total');"></td>
		</tr>
		</tbody>
		<tfoot>
		</tfoot>
	</table>
	  <br/>
	 <table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="persons">
	<tr class="li_1">
		<td align="left">项目人员总数：</td>
		<td colspan="5">
			<input type="text" name="zh_persons/psncnt_total" id="psncnt_total"  
			class="required irisValGreatEqual:psncnt_total:psncnt_total_tmp1 irisValGreatEqual:psncnt_total:psncnt_total_tmp2 irisValGreatEqual:psncnt_total:psncnt_huiguo" 
			label="项目人员总数" onfocus="InitInput.setNumber(this,7,0,0)" 
			style="text-align:right; width:100px;" value="<x:out select="$xmlData/data/zh_persons/psncnt_total" />" />人
			<input id="psncnt_total_tmp1" name="zh_persons/psncnt_total_tmp1" type="hidden"  class="valueGreatEqual:psncnt_total:psncnt_total_tmp1"
			label="项目人员高级、中级、初级人数之和" value="<x:out select="$xmlData/data/zh_persons/psncnt_total_tmp1" />">
			<input id="psncnt_total_tmp2" name="zh_persons/psncnt_total_tmp2" type="hidden"  class="valueGreatEqual:psncnt_total:psncnt_total_tmp2"
			 label="项目人员博士后、博士、硕士生人数之和" value="<x:out select="$xmlData/data/zh_persons/psncnt_total_tmp2" />">
		</td>
		</tr>
		<tr>
			<td align="left" colspan="6"><strong>其中（按职称）</strong></td>
		</tr>
		<tr>
			<td align="left" nowrap>留学回国人数：</td>
			<td>
				<input type="text" id="psncnt_huiguo" name="zh_persons/psncnt_huiguo" class=" required"  
				label="留学回国人数"  onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" 
				value="<x:out select="$xmlData/data/zh_persons/psncnt_huiguo" />" />人
			</td>
		
			<td align="left" nowrap>正高级：</td>
			<td>
				<input type="text" id="psncnt_vhigh" name="zh_persons/psncnt_vhigh" class=" required"  
				label="项目人员正高级人数"  onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" 
				value="<x:out select="$xmlData/data/zh_persons/psncnt_vhigh" />" 
				onchange="countNum('psncnt_','other,vhigh,low,mid,high','total_tmp1');"/>人
			</td>
			<td align="left" nowrap>副高级：</td>
			<td>
				<input type="text" id="psncnt_high" name="zh_persons/psncnt_high" class=" required"  
				label="项目人员副高级人数"  onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" 
				value="<x:out select="$xmlData/data/zh_persons/psncnt_high" />" 
				onchange="countNum('psncnt_','other,vhigh,low,mid,high','total_tmp1');"/>人
			</td>
				
			
		</tr>
		
		<tr>
			<td align="left"nowrap>中级：</td>
			<td>
				<input type="text" id="psncnt_mid" name="zh_persons/psncnt_mid" class=" required"  
				 label="项目人员中级人数"  onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" 
				 value="<x:out select="$xmlData/data/zh_persons/psncnt_mid" />" 
				 onchange="countNum('psncnt_','other,vhigh,low,mid,high','total_tmp1');" />人
			</td>
			<td align="left"nowrap>初级：</td>
			<td>
				<input type="text" id="psncnt_low" name="zh_persons/psncnt_low" class=" required" 
				label="项目人员初级人数"  onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" 
				value="<x:out select="$xmlData/data/zh_persons/psncnt_low" />" 
				onchange="countNum('psncnt_','other,vhigh,low,mid,high','total_tmp1');"/>人
			</td>
			<td align="left"nowrap>其它：</td>
			<td>
				<input type="text" id="psncnt_other" name="zh_persons/psncnt_other" class=" required" 
				label="项目人员其它人数"  onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" 
				value="<x:out select="$xmlData/data/zh_persons/psncnt_other" />" 
				onchange="countNum('psncnt_','other,vhigh,low,mid,high','total_tmp1');"/>人
			</td>
		</tr>
		<tr>
			<td align="left" colspan="6"><strong>培养人才</strong></td>
		</tr>
		<tr>
		
			<td align="left"nowrap>博士后：</td>
			<td>
				<input type="text" id="psncnt_postdoctor" name="zh_persons/psncnt_postdoctor" class=" required" 
				label="项目人员博士后人数" onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" 
				value="<x:out select="$xmlData/data/zh_persons/psncnt_postdoctor" />" 
				onchange="countNum('psncnt_','postdoctor,doctoral,master','total_tmp2');"/>人
			</td> 
			 <td align="left"nowrap>博士生：</td>
			<td>
				<input type="text" id="psncnt_doctoral" name="zh_persons/psncnt_doctoral" class=" required" 
				label="项目人员博士生人数"  onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" 
				value="<x:out select="$xmlData/data/zh_persons/psncnt_doctoral" />" 
				onchange="countNum('psncnt_','postdoctor,doctoral,master','total_tmp2');"/>人
			</td> 
			<td align="left"nowrap>硕士生：</td>
			<td>
				<input type="text" id="psncnt_master" name="zh_persons/psncnt_master" class=" required" 
				label="项目人员硕士生人数"  onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" 
				value="<x:out select="$xmlData/data/zh_persons/psncnt_master" />" 
				onchange="countNum('psncnt_','postdoctor,doctoral,master','total_tmp2');"/>人
			</td>
			<%-- <td align="left"nowrap>学士：</td>
			<td>
				<input type="text" id="psncnt_bachelor" disabled name="zh_persons/psncnt_bachelor" class=" required" label="项目人员学士人数" onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" value="<x:out select="$xmlData/data/zh_persons/psncnt_bachelor" />" onchange="countNum('psncnt_','postdoctor,doctoral,master','total_pps');countNum('psncnt_','low,mid,high,postdoctor,doctoral,master','total_tmp');"/>人
			</td>
			<td align="left"nowrap>其他：</td>
			<td>
				<input type="text" id="psncnt_other" disabled name="zh_persons/psncnt_other" class=" required" label="项目人员其他人数" onfocus="InitInput.setNumber(this,7,0,0)"  style="text-align:right; width:100px;" value="<x:out select="$xmlData/data/zh_persons/psncnt_other" />" onchange="countNum('psncnt_','postdoctor,doctoral,master','total_pps');countNum('psncnt_','low,mid,high,postdoctor,doctoral,master','total_tmp');"/>人
			</td> --%>
		</tr>
	</table>
	  
	  
	  <%-- <div class="t_bar"><span class="color_red">*</span>项目负责人简介（限300字）</div>
	 <table class="t_css" width="100%" border="0" cellpadding="0"  id="tblresume"
	    cellspacing="1">
      <tr class="li_2">
          <td>
			<textarea rows="15" cols="150"  class="input_textarea required  "   name='proposal/goal/resume'  label="项目负责人简介"><x:out select="$xmlData/data/proposal/goal/resume"/></textarea>
		   <input type='hidden' name='proposal/goal/resume_hidden' id='proposal/goal/resume_hidden' value=''>
		  </td>
      </tr>
    </table> --%>
<script type="text/javascript">
psnSynchro();
countPsnNum('zh_persons','psncnt_total');
function selectFirstRadio(obj) {
	$(obj).parent('td').parent('tr').find('input[type="radio"]').attr("checked","checked");
	setSubmitPsn();
}
function checkSubmitPsn(tableId){
	<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
	var tr=$("#"+tableId+" :radio:checked").parents("tr");
	if(tr.length!=0 && tr.get(0).rowIndex==2){
		scmWarn('如果您需要修改申请人信息， 请保存申请书后点击菜单“管理”>“个人信息维护”完成修改');
		return false;
	}
	</security:authorize>
	
	return true;
		
}
function psnSynchro(){
	$("span[name$='fzr_psnname']").text($("#zh_persons tr:eq(2)").find("span[name$='basic_info/zh_name']").text());
	/* $("span[name$='fzr_tel']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/tel_work']").val()); */
	$("span[name$='fzr_mobile']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/mobile']").val());
	$("span[name$='fzr_mail']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/email']").val());
	$("span[name$='fzr_idcard']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/email']").val());
	$("span[name$='degree_name']").text($("#zh_persons tr:eq(2)").find("input[name$='basic_info/degree_name']").val());
	$("span[name$='proposal/prof_title_name']").text($("#zh_persons tr:eq(2)").find("span[name$='basic_info/prof_title_name']").text());
	$("span[name$='proposal/org_name']").text($("#zh_persons tr:eq(2)").find("span[name$='basic_info/org_name']").text());
	$("span[name$='address']").text($("#zh_persons tr:eq(2)").find("input[name$='basic_info/address']").val());
	$("span[name$='fzr_searcharea']").text($("#zh_persons tr:eq(2)").find("input[name$='basic_info/discipline_name']").val());
	$("span[name$='proposal/fzr_idcard']").text($("#zh_persons tr:eq(2)").find("input[name$='basic_info/card_code']").val()+"（"+$("#zh_persons tr:eq(2)").find("input[name$='basic_info/card_type_name']").val()+"）");
	$("span[name$='proposal/fzr_tel_work']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/tel_work']").val());
	$("span[name$='proposal/fzr_post_code']").text($("#zh_persons tr:eq(2)").find("input[name$='basic_info/post_code']").val());
	$("span[name$='proposal/fzr_address']").text($("#zh_persons tr:eq(2)").find("input[name$='basic_info/address']").val());
	$("span[name$='proposal/fzr_degree_name']").text($("#zh_persons tr:eq(2)").find("input[name$='basic_info/degree_name']").val());
	$("span[name$='proposal/fzr_major']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/major']").val());
	$("span[name$='proposal/fzr_graduate_college']").text($("#zh_persons tr:eq(2)").find("input[name$='basic_info/degree_college']").val());
	$("span[name$='proposal/fzr_fax']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/fax']").val());
	$("span[name$='proposal/fzr_fax']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/fax']").val());
	
	
	
	
	
}


function countPsnNum(tableId,destId){
	var lineNum = $('#'+tableId).find("tr").length-2;
	if(lineNum >= 0){
	   $('#'+destId).val(lineNum);
	}else{
		$('#'+destId).val(0);
	}
}
</script>
	
	
	
	
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org">
	<tr>
		<td class="t_bar2" colspan="4">主承担单位：&nbsp;&nbsp;<span name="organizations/organization[0]/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/></span></td>
	</tr>
	
	<tr>
		<td align="right" width="20%">独立研发机构：</td> 
		<td width="25%">
			<label> <input type="radio" class="do " id="commit_category_01" style="vertical-align: middle;" name="commit_category" label="有" value="01" /><span style="vertical-align: middle;">有</span></label> 
			<label> <input type="radio" class="do " id="commit_category_02" style="vertical-align: middle;" name="commit_category" label="无" value="02" /><span style="vertical-align: middle;">无</span></label>
			<input type="hidden" name="proposal/commit_category_value" id="commit_category_value" class="required" value="<x:out select="$xmlData/data/proposal/commit_category_value" />" label="独立研发机构 " /> 
			<input type="hidden" name="proposal/commit_category_name" id="commit_category_name" value="<x:out select="$xmlData/data/proposal/commit_category_name" />" label="独立研发机构" />
		</td>
		
		<td align="right" width="15%">企业类型：</td>
		<td width="40%">
			<input  name="proposal/business_type" label="企业类型" type="text" class="input_css  maxlength:100"  value="<x:out select="$xmlData/data/proposal/business_type" />"/>
		</td>
	</tr>
	<tr>
		<td align="right" width="20%">归口管理部门：</td> 
		<td width="25%">
			<input  name="proposal/sectors" label="归口管理部门" type="text" class="input_css  maxlength:100"  value="<x:out select="$xmlData/data/proposal/sectors" />"/>
		</td>
		
		<td align="right" width="15%">所属系统：</td>
		<td width="40%">
			<input  name="proposal/belongs_sys" label="所属系统" type="text" class="input_css  maxlength:100"  value="<x:out select="$xmlData/data/proposal/belongs_sys" />"/>
		</td>
	</tr>
	<tr>
		<td align="center" width="20%">其他承担单位情况</td> 
		<td align="center" width="25%">单位名称</td>
		<td align="center" colspan="2">项目中的主要任务</td>
	</tr>
	<tr>
		<td align="center" width="20%">
			第二承担单位
		</td> 
		<td width="25%">
			<input  name="proposal/org2_name" label="第二承担单位-->单位名称" type="text" class="input_css  maxlength:100"  value="<x:out select="$xmlData/data/proposal/org2_name" />"/>
		</td>
		<td colspan="2" align="center">
			<input  name="proposal/org2_task" width="320px" label="第二承担单位-->项目中的主要任务" type="text" class="input_css  maxlength:100"  value="<x:out select="$xmlData/data/proposal/org2_task" />"/>
		</td>
	</tr>
	<tr>
		<td align="center" width="20%">
			第三承担单位
		</td> 
		<td width="25%">
			<input  name="proposal/org3_name" label="第三承担单位-->单位名称" type="text" class="input_css  maxlength:100"  value="<x:out select="$xmlData/data/proposal/org3_name" />"/>
		</td>
		<td colspan="2" align="center">
			<input  name="proposal/org3_task" width="320px" label="第三承担单位-->项目中的主要任务" type="text" class="input_css  maxlength:100"  value="<x:out select="$xmlData/data/proposal/org3_task" />"/>
		</td>
	</tr>
	
</table>



	
	
	



